package org.NooLab.glue.subscription;

import java.io.Serializable;
import java.util.Vector;

import org.NooLab.glue.MessageBoard;
import org.NooLab.glue.msgframe.XRegistration;






/**
 * 
 * 
 * 
 * 
 * 
 */
public class ContextHeaderDescription implements Serializable{
 
	private static final long serialVersionUID = -1217088758482414575L;

	transient MessageBoard msgBoard;
	
	String label;
	
	byte[] bytes = new byte[0] ;
	
	String fulltext = "";
	
	String[] itemSet   = new String[0];
	
	double[] dataItems = new double[0];
	
	
	double minimumSimilarity = 0.0;
	
	int cdataType = -1;  
	
	String roleOfIssuer = "*";  
	String nameOfIssuer = "*";  
	
	boolean disclosureAllowData  = false;
	boolean disclosureAllowName  = false ;
	boolean clientRelayByContext = false ;
	

	// XRegistration xRegistration = null;
	long instanceID = -1;
	long transactionID = -1;

	
	// ------------------------------------------------------------------------
	public ContextHeaderDescription( MessageBoard mb ){
		
		msgBoard = mb;
	}
	// ------------------------------------------------------------------------


	public MessageBoard getMsgBoard() {
		return msgBoard;
	}



	public void setMsgBoard(MessageBoard msgBoard) {
		this.msgBoard = msgBoard;
	}



	public long getInstanceID() {
		return instanceID;
	}



	public long getTransactionID() {
		return transactionID;
	}



	public void setInstanceID(long instanceID) {
		this.instanceID = instanceID;
	}



	public void setTransactionID(long transactionID) {
		this.transactionID = transactionID;
	}



	public String getLabel() {
		return label;
	}



	public void setLabel(String label) {
		this.label = label;
	}



	public String getRoleOfIssuer() {
		return roleOfIssuer;
	}



	public void setRoleOfIssuer(String roleOfIssuer) {
		this.roleOfIssuer = roleOfIssuer;
	}



	public String getNameOfIssuer() {
		return nameOfIssuer;
	}



	public void setNameOfIssuer(String nameOfIssuer) {
		this.nameOfIssuer = nameOfIssuer;
	}



	public int getCDataType() {
		return cdataType;
	}



	public void setCDataType(int dataType) {
		this.cdataType = dataType;
	}



	public String[] getItemSet() {
		return itemSet;
	}



	public void setItemSet(String[] itemSet) {
		this.itemSet = itemSet;
	}



	public double[] getDataItems() {
		return dataItems;
	}


	public void setDataItems(double[] dataItems) {
		this.dataItems = dataItems;
	}


	public String getFulltext() {
		return fulltext;
	}



	public void setFulltext(String fulltext) {
		this.fulltext = fulltext;
	}



	public byte[] getBytes() {
		return bytes;
	}



	public void setBytes(byte[] bytes) {
		this.bytes = bytes;
	}



	public boolean isDisclosureAllowData() {
		return disclosureAllowData;
	}
	public boolean getDisclosureAllowData() {
		return disclosureAllowData;
	}

	public void setDisclosureAllowData(boolean disclosureAllowData) {
		this.disclosureAllowData = disclosureAllowData;
	}

	public boolean isDisclosureAllowName() {
		return disclosureAllowName;
	}
	public boolean getDisclosureAllowName() {
		return disclosureAllowName;
	}

	public void setDisclosureAllowName(boolean disclosureAllowName) {
		this.disclosureAllowName = disclosureAllowName;
	}

	public boolean isClientRelayByContext() {
		return clientRelayByContext;
	}	
	public boolean getClientRelayByContext() {
		return clientRelayByContext;
	}

	public void setClientRelayByContext(boolean clientRelayByContext) {
		this.clientRelayByContext = clientRelayByContext;
	}



	public double getMinimumSimilarity() {
		return minimumSimilarity;
	}



	public void setMinimumSimularity(double minimumSimilarity) {
		this.minimumSimilarity = minimumSimilarity;
	}

	
	
	
}
